<!Doctype html>
<html>
<head>
    <meta charset="utf-8">
    <title>大旺福--{$title}</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <link rel="stylesheet" href="/assets/layui/css/layui.css" media="all">
    <link rel="stylesheet" href="/assets/layui/css/global.css" media="all">
</head>
<body>
<div class="layui-layout layui-layout-admin">

    <!-- header start -->
    {include file="layout/header.html"}
    <!-- header end -->

    <!-- nav start-->
    {include file="layout/nav.html"}
    <!-- nav end-->

    <!-- main start -->
    <div class="layui-body site-demo">
        <div class="layui-main">
            <fieldset class="layui-elem-field layui-field-title">
                <legend>{$title}</legend>
            </fieldset>
            <div class="site-block">
                <div class="content">
                    <form class="layui-form layui-form-pane" action="#">
                        <div class="layui-form-item" pane>
                            <label class="layui-form-label">负责人</label>
                            <div class="layui-input-block">
                                <input type="checkbox" lay-skin="primary" lay-filter="manager-all" name="manager-all" title="所有" value="0">
                                {foreach from=$managerList item=m name=i}
                                <input type="checkbox" lay-skin="primary" lay-filter="manager" name="manager" title="{$m.username}" value="{$m.id}">
                                {/foreach}
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">配送日期</label>
                            <div class="layui-input-inline">
                                <input class="layui-input" placeholder="配送日期" id="deliver-date">
                            </div>
                            <label class="layui-form-label">订单状态</label>
                            <div class="layui-input-inline">
                                <select id="status" lay-filter="status">
                                    <option value="0">已确认</option>
                                    <option value="-1">所有</option>
                                    <option value="2">已配货</option>
                                    <option value="1">已完成</option>
                                    <option value="3">已取消</option>
                                    <option value="9">已失效</option>
                                </select>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">订单日期</label>
                            <div class="layui-input-inline">
                                <input class="layui-input" placeholder="开始" id="supply-begain">
                            </div>
                            <div class="layui-input-inline">
                                <input class="layui-input" placeholder="结束" id="supply-end">
                            </div>
                            <div class="layui-input-inline">
                                <button class="layui-btn supply-option-confirm" type="button">确认</button>
                                <button class="layui-btn layui-btn-normal supply-data-export" type="button">导出</button>
                            </div>
                        </div>
                        <table class="layui-table">
                            <colgroup>
                                <col>
                                <col>
                                <col>
                                <col>
                                <col>
                                <col>
                                <col>
                                <col>
                            </colgroup>
                            <thead>
                            <tr>
                                <th>#</th>
                                <th>编号</th>
                                <th>分类</th>
                                <th>名称</th>
                                <th>数量</th>
                                <th>规格</th>
                                <th>单位</th>
                                <th>状态</th>
                            </tr>
                            </thead>
                            <tbody id="supply-list-block">
                            </tbody>
                        </table>
                    </form>
                </div>
            </div>

        </div>
    </div>
    <!-- main end -->

</div>

{literal}<script id="supply-list" type="text/html">
    {{#  layui.each(d, function(index, item){ }}
    <tr>
        <td colspan="8" style="color:red;font-weight:bold;">{{ item[1] }}</td>
    </tr>
    {{#  layui.each(item[0], function(index2, item2){ }}
    <tr>
        <td>{{ index2 + 1 }}</td>
        <td>{{ item2.product_id }}</td>
        <td>{{ item2.category_name }}</td>
        <td>{{ item2.pname }}</td>
        <td>{{ item2.product_num }}</td>
        <td>{{ item2.precise_unit }}</td>
        <td>{{ item2.sku_name }}</td>
        <td>
            {{# if(item2.status == '0'){ }}
                {{ '已确认' }}
            {{# }else if(item2.status == '1'){ }}
                {{ '已完成' }}
            {{# }else if(item2.status == '2'){ }}
                {{ '已配货' }}
            {{# }else if(item2.status == '3'){ }}
                {{ '已取消' }}
            {{# }else if(item2.status == '4'){ }}
                {{ '待付款' }}
            {{# }else if(item2.status == '9'){ }}
                {{ '已失效' }}
            {{# }else{ }}
                {{ '已确认' }}
            {{# } }}
        </td>
    </tr>
    {{# }); }}
    {{# }); }}
</script>{/literal}
{include file="layout/footerJs.html"}
<script src="/assets/layui/js/supply/manager_supply_list.js"></script>
</body>
</html>
